package com.example.dao;

import com.example.entity.SigninusersInfo;
import com.example.entity.YinshidacardInfo;
import com.example.vo.YinshidacardInfoVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

@Repository
public interface YinshidacardInfoDao extends Mapper<YinshidacardInfo> {
    List<YinshidacardInfoVo> findByDacarddates(@Param("dacarddates") String dacarddates);
	List<YinshidacardInfoVo> findByDacarddateslist2(@Param("dacarddates") String dacarddates,@Param("dacardby") String dacardby);
        
	//xiugaimimazy
    int checkRepeat(@Param("column") String column, @Param("value") String value, @Param("id") Long id);
    
    Integer count();
	
	@Select("select * from yinshidacard_info where dacardby = #{dacardby}")
    YinshidacardInfo selectByDacardby(String dacardby);
	
	@Select("SELECT * FROM yinshidacard_info order by id")
    List<Map<String, Object>> daochuexcel();
	
	@Select("SELECT xxdiquziduanxxxx,count(id) as hsggs FROM yinshidacard_info  group by xxdiquziduanxxxx")
    List<Map<String,String>> findByDiqu();
	
	
	
	
	
	
    
	
	
	
	//wexixinxzhuaxnyoxng
	
	@Select("select * from yinshidacard_info where dacardby = #{username}")
    List<YinshidacardInfo> findBydacardby(SigninusersInfo signinusersInfo);
    

}
